#include<linux/module.h>
#include<linux/pid.h>
#include<linux/sched.h>
MODULE_LICENSE("GPL");
static int __init get_pid_init(void)
{
	printk("into get_pid_init.\n");
	struct pid * mypid=find_get_pid(current->pid);

	printk("the count of mypid is :%d\n",mypid->count);
	printk("the level of mypid is :%d\n",mypid->level);
	struct pid *mypid1=get_pid(mypid);

	printk("the count of mypid1 is %d\n",mypid1->count);
	printk("the level of mypid1 is %d\n",mypid1->level);
	printk("out get_pid_init.\n");
	return 0;
}

static void __exit get_pid_exit(void)
{
	printk("Goodbye get_pid.\n");
}
module_init(get_pid_init);
module_exit(get_pid_exit);

